#include <stdio.h>

int main()
{
	int number,a,b,c;
	
	scanf("%d",&number);
	
	printf("%d",c=number%10);
	
	
	printf("%d",b=number/10%10);
	
	
	printf("%d",a=number/100);
	
	return 0;
}
